package com.witframework.baseapp.security;

import java.util.Date;

import org.javalid.annotations.validation.NotEmpty;

import com.witframework.core.annotations.Wit;
@Wit(cnname="资源")
public class Resource{
	@Wit(cnname="代码")	@NotEmpty
	private String id;
	
	@Wit(cnname="名称")	@NotEmpty
	private String name;
	
	@Wit(cnname="父代码")
	private String parentId;	
	
	@Wit(cnname="图标",description="如果是菜单（MENU）类型的资源，用于设置图标")
	private String icon;
	
	@Wit(cnname="顺序号")
	private Integer orders=0;
	
	@Wit(cnname="类型",description="MENU|URI")	@NotEmpty
	private String resourceType;	
	
	@Wit(cnname="值",description="MENU：URL")
	private String resourceValue;
	
	@Wit(cnname="target",description="如果是菜单（MENU）类型的资源，用于设置目标窗体")
	private String target;	
	
	@Wit(cnname="导航？",description="用于显示在导航工具条")
	private String isNav="N";
	
	@Wit(cnname="访客访问？",description="允许来宾用户访问")
	private String isGuest="N";
	
	@Wit(cnname="公众？",description="允许所有用户访问")
	private String isPublic="N";
	
	@Wit(cnname="在用?") @NotEmpty
	private String isUse="Y";
	
	@Wit(cnname="锁定")
	private String isLocked="N";
	
	@Wit(cnname="添加日期")
	private Date addDate;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getOrders() {
		return orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getResourceValue() {
		return resourceValue;
	}

	public void setResourceValue(String resourceValue) {
		this.resourceValue = resourceValue;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getIsNav() {
		return isNav;
	}

	public void setIsNav(String isNav) {
		this.isNav = isNav;
	}

	public String getIsGuest() {
		return isGuest;
	}

	public void setIsGuest(String isGuest) {
		this.isGuest = isGuest;
	}

	public String getIsPublic() {
		return isPublic;
	}

	public void setIsPublic(String isPublic) {
		this.isPublic = isPublic;
	}

	public String getIsUse() {
		return isUse;
	}

	public void setIsUse(String isUse) {
		this.isUse = isUse;
	}

	public String getIsLocked() {
		return isLocked;
	}

	public void setIsLocked(String isLocked) {
		this.isLocked = isLocked;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}
}
